package com.banksoft.cps.dao;

import com.banksoft.cps.bean.BuyCompany;
import com.banksoft.cps.bean.query.BuyCompanyQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by rongzhao.zhu on 2018/1/10.
 */
@Repository
public interface BuyCompanyDao {

    List<BuyCompany> list(BuyCompanyQuery query);

    long  count(BuyCompanyQuery query);

    void  insert(BuyCompany bean);

    void update(BuyCompany bean);

    BuyCompany findById(String id);

    List<BuyCompany> listByIdList(List<String> idList);

    BuyCompany findByAccount(String account);

    void delete(String[] ids);

}
